﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Services.Description;

namespace DriveBabyDrive.Models
{
    public class VehicleModel
    {
        [Required]
        [DataType(DataType.Currency)]
        [Display(Name = "Vehicle ID")]
        public int VehicleID{ get; set; }
        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "Vehicle Name")]
        [StringLength(15,ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 2)]
        public string VehicleName { get; set; }
        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "Make")]
        public string Make { get; set; }
        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "Model")]
        public string Model { get; set; }
        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "Year")]
        public string Year { get; set; }
        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "Trim")]
        public string Trim { get; set; }
        
    }
}